﻿using movie.tool.library.binding;

namespace movie.tool.module.film.model
{
    public class BusyInfo : NotifyPropertyChanged
    {
        private bool busy;
        public bool Busy
        {
            get => busy;
            set
            {
                busy = value;
                SendPropertyChanged(nameof(Busy));
            }
        }
        private string busyMessage;
        public string BusyMessage
        {
            get => busyMessage;
            set
            {
                busyMessage = value;
                SendPropertyChanged(nameof(BusyMessage));
            }
        }

        public void DefaultMessage()
        {
            BusyMessage = "请稍候...";
        }

        public void Reset()
        {
            Busy = false;
            BusyMessage = "";
        }
    }
}
